package com.qf.chuang.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @date 2022/7/7
 * @desc
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Book implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer id;
    private String name;
    private String author;
    private Date publish;
    private Integer sort;

    public Book(String name, String author, Date publish) {
        this.name = name;
        this.author = author;
        this.publish = publish;
    }


    public Book(Integer id, String name, String author, Date publish) {
        this.id = id;
        this.name = name;
        this.author = author;
        this.publish = publish;
    }
}
